<table class="table">
     <thead>
         <tr>
             <th>Lien</th>
         </tr>
     </thead>
     <tbody>
         <?php
         foreach($actus as $k => $v){
             echo '<tr>';
             echo '<td><a href="'.Router::url($v->type.'s/view/'.$v->id.'/'.$v->slug).'">'.ucfirst($v->type).' : '.$v->titre.'<a></td>';
             echo '</tr>';
         }
        ?>
     </tbody>
</table>
<script src="<?php echo Router::webroot('js/jquery.min.js') ;?>"></script>
<script type="text/javascript">
var parentWin = (!window.frameElement && window.dialogArguments) || opener || parent || top;
$(function() {
    $('a').click(function(e){
        e.preventDefault();
        aSrc = $(this).attr('href');
        divInput = $("input#"+parentWin.inputSrc,parent.document).parent().attr('id');
        divInputSplit = divInput.split("_");
        divTitle = "mce_"+(parseInt(divInputSplit[1],10) +1);
        $("input#"+parentWin.inputSrc,parent.document).val(aSrc);
        $(".mce-close",parent.document).last().trigger("click");
    });
});
</script>
